package com.myplans.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.myplans.client.presenter.SearchPresenter.Display;

public class SearchView extends Composite implements Display {

	private static SearchViewUiBinder uiBinder = GWT
			.create(SearchViewUiBinder.class);

	interface SearchViewUiBinder extends UiBinder<Widget, SearchView> {
	}

	public SearchView() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	@UiField
	FlowPanel plansPanel;
	@UiField
	Label searchString;


	public void setSearchString(String searchString) {
		this.searchString.setText(searchString);
	}

	public FlowPanel getPlansPanel() {
		return plansPanel;
	}

	public SearchView(String firstName) {
		initWidget(uiBinder.createAndBindUi(this));
	}

}
